//
//  Enemy01.cpp
//  Space shooting
//
//  Created by Raiden on 9/12/13.
//
//

#include "Enemy01.h"

Enemy01::Enemy01() {
    
    hp = 1;
    damage = 100;
    speed = 3.0;
    score = 10;
    
    scheduleUpdate();
}

Enemy01::~Enemy01() {
    removeAllChildrenWithCleanup(true);
}

Enemy01* Enemy01::create(const char *pszFileName) {
    
    Enemy01 *enemy = new Enemy01;
    
    if(enemy && enemy->initWithFile(pszFileName)) {
        
        enemy->autorelease();
        
        return  enemy;
    }
    
    CC_SAFE_DELETE(enemy);
    return NULL;
}

